import { lazy } from "react";
export default [
    {
        path: '/login',
        exact: true,
        component: lazy(() => import('pages/Login'))
    },
    {
        path: "/",
        component: lazy(() => import('pages/Home')),
        children: [
            {
                path: "/monitor",
                component: lazy(() => import('pages/Monitor'))
            },
            {
                path: '/realTime',
                component: lazy(() => import('pages/RealTime'))
            }
        ],
    },
    {
        path: '/hooks',
        component: lazy(() => import('pages/Home')),
        children: [
            {
                path: window.location.pathname,
                component: lazy(() => import(`hooks/${window.location.pathname.split('/')[2]}/demo.tsx`))
            }
        ]
    }
];